﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using PraxisRent.Entities;

namespace PraxisRent.Repository
{
    public class DetalleEntregaRepository:MasterRepository, IDetalleEntregaRepository
    {
        public List<DETALLE_ENTREGA> GetAllFromDetalleEntregaByCodigoEntrega(int codigo)
        {
            var query = from c in context.DETALLE_ENTREGA.Include("EQUIPO.MARCA")
                        where c.CodigoEntrega.Equals(codigo)
                        select c;
            return query.ToList();
        }
    }
}
